package com.ck567.syn;

public class TestTwo {
    public static void main(String[] args) {
        /**
         * 对象锁 不同对象
         */
        Thread A_Thread_01 = new Thread(new SynThread(),"A_Thread_01");
        Thread A_Thread_02 = new Thread(new SynThread(),"A_Thread_02");
        Thread B_Thread_01 = new Thread(new SynThread(),"B_Thread_01");
        Thread B_Thread_02 = new Thread(new SynThread(),"B_Thread_02");
        Thread C_Thread_01 = new Thread(new SynThread(),"C_Thread_01");
        Thread C_Thread_02 = new Thread(new SynThread(),"C_Thread_02");
        A_Thread_01.start();
        A_Thread_02.start();
        B_Thread_01.start();
        B_Thread_02.start();
        C_Thread_01.start();
        C_Thread_02.start();

    }
}

